package edu.xhu.model.common.constants;

public class CommentConstants {

    /**
     * 视频的根评论id缓存(热度排序, zset结构)
     * <p>
     * video_comment_orderby_hot_key:videoId
     */
    public static final String VIDEO_COMMENT_ORDERBY_HOT_ZSET_KEY = "video_comment_orderby_hot_key:";

    /**
     * 视频的根评论id缓存(时间排序, zset结构)
     * <p>
     * video_comment_orderby_time_key:videoId
     */
    public static final String VIDEO_COMMENT_ORDERBY_TIME_ZSET_KEY = "video_comment_orderby_time_key:";

    /**
     * 根评论缓存(已封装好了子评论)
     * <p>
     * video_root_comment_cache:rootCommentId
     */
    public static final String VIDEO_ROOT_COMMENT_CACHE_KEY = "video_root_comment_cache:";

    /**
     * 热门评论权重
     */
    public static final double LOVE_WEIGHT = 0.65;
    public static final double COMMENT_WEIGHT = 0.35;

    /**
     * 根评论排序类型
     */
    public static final String ROOT_COMMENT_SORT_BY_HOTNESS = "hotness";
    public static final String ROOT_COMMENT_SORT_BY_TIME = "time";

}
